<template>
  <div class="mui-numbox" data-numbox-min="1" data-numbox-max="9" data-numbox-step="1">
    <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
    <input id="test" class="mui-input-numbox" type="number" value="1" />
    <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
  </div>
</template>

<script>
import mui from "../../lib/mui/js/mui.min.js";//这里需要引入带min的文件 否则会点击一次加2
export default {
  mounted() {
    mui(".mui-numbox").numbox();
  }
};
</script>

<style lang="scss" scoped>
</style>